﻿<UserControl xmlns:my1="clr-namespace:VAdvantage.Controls"  xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls"  x:Class="VAdvantage.Apps.AForms.VPayPrint"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" >

    <Grid x:Name="LayoutRoot" ShowGridLines="False">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*" />

        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>
        <my:VCheckBox Name="chkShowPrinted" Grid.Column="1" Content="IncludePrinting" HorizontalAlignment="Left" Margin="5,5,5,5"  VerticalAlignment="Center" Click="chkShowPrinted_Click" />
        <my:VLabel Name="lblPaySelect" Grid.Row="1" Grid.Column="0"  Content="paymentselection"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VLabel Name="lblBank" Grid.Row="2"  Grid.Column="0" Content="bankaccount" HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VLabel Name="lblBankName" Grid.Row="2" Grid.Column="1" Content="---"  HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VLabel Name="lblBalance" Grid.Row="2" Grid.Column="2" Content="Currentbalance"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VLabel Name="lblPaymentRule" Grid.Row="3" Grid.Column="0" Content="paymentmethod"  HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VLabel Name="lblCurrency" Grid.Row="3" Grid.Column="2" Content="currency"  HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VLabel Name="lblCurrencyName" Grid.Row="3" Grid.Column="3" Content="---"  HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VLabel Name="lblDocumentNo" Grid.Row="4" Grid.Column="0" Content="Checkno" HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VLabel Name="lblNoPayments" Grid.Row="4" Grid.Column="2" Content="NoofPayment" HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto" />
        <my:VLabel Name="lblNoPaymentsCount" Grid.Row="4" Grid.Column="3" Content="---"  HorizontalAlignment="Right" Margin="5,5,5,5"  VerticalAlignment="Center" Width="Auto" Height="Auto"  />
        <my:VComboBox Name="cmbPaySelect" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto"  SelectionChanged="cmbPaySelect_SelectionChanged"  />
        <my:VComboBox Name="cmbPaymentRule" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto"  SelectionChanged="cmbPaymentRule_SelectionChanged"  />
        <my:VTextBox x:Name="txtBalance" Grid.Row="2" Grid.Column="3"  HorizontalAlignment="Stretch" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto" TextChanged="txtBalance_TextChanged" />
        <my:VTextBox x:Name="txtDocumentNo" TextAlignment="Right" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5,5,5,5"  VerticalAlignment="Center" MinWidth="150" Height="Auto" />

        <my:VButton Grid.Row="5" Grid.Column="3" x:Name="btnCancel" Margin="0,0,45,0"  HorizontalAlignment="Left" Height="40" Width="Auto"  Click="btnCancel_Click">
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="Cancel32"   HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Cancel32.png"   />
            </StackPanel>
        </my:VButton>
        <my:VButton  Grid.Column="3" Grid.Row="5" x:Name="btnExport" HorizontalAlignment="Center"  Height="40" Width="40" Click="btnExport_Click"  >
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="Export32"  HorizontalAlignment="Center" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Export32.png"   />
            </StackPanel>
        </my:VButton>
        <my:VButton  Grid.Column="3" Grid.Row="5" x:Name="btnPrint" HorizontalAlignment="Right"  Height="40" Width="40" Click="btnPrint_Click"  >
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="Print32"  Height="Auto" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Print32.png"   />
            </StackPanel>
        </my:VButton>
        <!--<my:VButton  Grid.Column="3" Grid.Row="5" x:Name="btnEFT"  HorizontalAlignment="Left" Margin="45,0,0,0" Height="40" Width="Auto" Click="btnEFT_Click" >
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="Process32"  Height="Auto" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/Process32.png"   />
                <TextBlock Text="EFT" HorizontalAlignment="Right" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </my:VButton>-->

        <Grid x:Name="busyWindow" Grid.RowSpan="6" Grid.ColumnSpan="4" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity=".7" ShowGridLines="True" Background="LightGray" Visibility="Visible"  MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ProgressBar Height="20" HorizontalAlignment="Center" Grid.Column="0" IsIndeterminate="True"  Name="progressBar1" VerticalAlignment="Center" Width="250" />
            <!--<TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>-->
        </Grid>


    </Grid>
</UserControl>
